package androidx.appcompat.widget;

import android.content.Context;
import android.content.res.ColorStateList;
import android.graphics.PorterDuff.Mode;
import android.graphics.drawable.Drawable;
import android.util.AttributeSet;
import android.widget.RadioButton;
import androidx.annotation.DrawableRes;
import androidx.annotation.Nullable;
import androidx.annotation.RestrictTo;
import androidx.annotation.RestrictTo.d;
import o.ah.c;
import o.ar;
import o.cb;
import o.cc;
import o.ct;
import o.je;

public class AppCompatRadioButton extends RadioButton implements je {
    private final cc ˏ;
    private final cb ॱ;

    public AppCompatRadioButton(Context context) {
        this(context, null);
    }

    public AppCompatRadioButton(Context context, AttributeSet attributeSet) {
        this(context, attributeSet, c.ˍ);
    }

    public AppCompatRadioButton(Context context, AttributeSet attributeSet, int i) {
        super(ct.ˋ(context), attributeSet, i);
        this.ॱ = new cb(this);
        this.ॱ.ॱ(attributeSet, i);
        this.ˏ = new cc(this);
        this.ˏ.ˏ(attributeSet, i);
    }

    public void setButtonDrawable(Drawable drawable) {
        super.setButtonDrawable(drawable);
        if (this.ॱ != null) {
            this.ॱ.ˏ();
        }
    }

    public void setButtonDrawable(@DrawableRes int i) {
        setButtonDrawable(ar.ˋ(getContext(), i));
    }

    public int getCompoundPaddingLeft() {
        int compoundPaddingLeft = super.getCompoundPaddingLeft();
        return this.ॱ != null ? this.ॱ.ॱ(compoundPaddingLeft) : compoundPaddingLeft;
    }

    @RestrictTo({d.LIBRARY_GROUP})
    public void setSupportButtonTintList(@Nullable ColorStateList colorStateList) {
        if (this.ॱ != null) {
            this.ॱ.ˎ(colorStateList);
        }
    }

    @RestrictTo({d.LIBRARY_GROUP})
    public void setSupportButtonTintMode(@Nullable Mode mode) {
        if (this.ॱ != null) {
            this.ॱ.ॱ(mode);
        }
    }
}
